Skip to main content

Search

Description

Invanti Service Manager: Search step, fetches business object records based on the Full-Text (Keyword) / Criteria Query.

Limitation:

  • The service request business object record cannot be searched using this plugin step since there is a different API endpoint provided to create service request.
  • Few queries that have more than one operators (nested queries) may not provide correct output. For example, Priority eq '1' AND CauseCode eq 'Configuration' OR Approver eq 'AEApprover' AND Owner ne '$NULL'.
  • If the query is to be provided as Owner ne '$NULL' OR (Priority eq '1' AND Approver eq 'AEApprover') as per the UI, it needs to be provided as Priority eq '1' AND Approver eq 'AEApprover' OR Owner ne ‘$NULL’ in the plugin as well as API. However, in API adding brackets is not allowed hence user may get incorrect results.

References:

  • Documentation for creating an API Key: https://help.ivanti.com/ht/help/en_US/ISM/2021/admin/Content/Configure/API/Using-REST-API-Key.htm

API documentation:

  1. Search based on Full-Text: https://help.ivanti.com/ht/help/en_US/ISM/2021/admin/Content/Configure/API/Full-Text-Search-API.htm

  2. Search based on Criteria Query/Filter: https://help.ivanti.com/ht/help/en_US/ISM/2021/admin/Content/Configure/API/Get-Business-Object-by-Filter.htm

Configurations

No.Field NameDescription
1Step nameName of the step as it appears in the workflow workspace. This name has to be unique in a single workflow.
Connection
2Tenant URLTenant URL of Ivanti Service Manager instance.
The data type is String. This field is mandatory.
3API KeySpecify or select API Key generated for the tenant.
If checkbox above is enabled API Key field appears as Text box and accepts static values or variables. Else if checkbox above is disabled API Key field appears as a drop down containing values from previous steps to select from.
The data type is String. This field is mandatory.
Input Fields
1Business ObjectSpecify the internal name of business object for which search is to be executed.The data type is String. This field is mandatory.
2Search TypeSelect the type based on which the search is to be executed.
Available options are:
- Full-Text: On selection of this option, the Search Text field is enabled.
- Criteria Query: On selection of this option, the Criteria Query field is enabled.
- Both: On selection of this option, both, Search Text and Criteria Query fields are enabled.
The data type is String. This field is mandatory.
3Search TextSpecify the keyword based on which the full-text search is to be executed.
Note: This field is mandatory, if Search Type is Full-Text or Both.
4Criteria QuerySpecify the criteria query/filter based on which the search is to be executed.
Note: This field is mandatory, if Search Type is Criteria Query or Both.
For criteria query sample, see Sample Criteria Query
5Fetch Records Batch SizeSpecify the batch size to fetch records, that is, number of records to be fetched in one batch.
Default value: 25
Output Fields
1Field NameSpecify the field name to hold the records.
2Output FieldSpecify the output field to hold the Rec ID of the record created on successful plugin execution.

Sample Criteria Query

  • Priority eq '1'
  • Status eq 'Active' AND Owner eq 'Alan Taylor'
  • ActualCategory eq 'Backup' AND CauseCode eq 'Installation' OR Cost lt '100'

Note: Operators to be used in Criteria Query:

  1. Equal to: eq
  2. Not equal to: ne
  3. Greater than: gt
  4. Greater or Equal: ge
  5. Less than: lt
  6. Less or Equal: le